package pe.gob.osinergmin.utils;

import android.app.ProgressDialog;

import com.sromku.simple.storage.Storage;

import java.util.HashMap;
import java.util.Map;

import pe.gob.osinergmin.bean.common.UnidadOperativa;

public class PuntoControlConstants {

    public static final String EMPTY = "";
    public static final String DATE_PATTERN = "dd/MM/yyyy";
    public static final String LOCATION_DUMMY_PROVIDER = "dummyprovider";
    public static final String IVX = "abcdefghijklmnop"; // 16 lenght - not secret
    public static final String SECRET_KEY = "0s1n3rgm1n"; // 16 lenght - secret
    public static final String DATA_FILE_EXT = ".osi";
    public static final String APP_DATA_DIR = ".puntocontrol";

    public static UnidadOperativa unidadOperativa = new UnidadOperativa();

    public static ProgressDialog progressDialog;

    public static Storage storage = null;

    public static final Integer GPS_ERRORDIALOG_REQUEST = 9001;

    public static final String SESSION_USER_VAR = "SESSION_USER_VAR";

    public static final String URL_SERVER_DOMAIN = "http://yumiusik.com";

    public static final String URL_USUARIO_LOGIN = URL_SERVER_DOMAIN + "/controlWS/rest/usuario/login/{0}";

    public static final String URL_UNIDADOPERATIVA_LIST = URL_SERVER_DOMAIN + "/controlWS/rest/unidadOperativa/list";

    public static final String URL_PRODUCTO_GET = URL_SERVER_DOMAIN + "/controlWS/rest/producto/get";

    public static final String URL_ORDENPEDIDO_LIST = URL_SERVER_DOMAIN + "/controlWS/rest/ordenPedido/list";

    public static final String URL_GUIASUPERVISION_SEGURIDAD_GET = URL_SERVER_DOMAIN + "/controlWS/rest/guiaSupervision/seguridad/get";

    public static final String URL_GPS_FIND_POSITION_BY_PLACA = URL_SERVER_DOMAIN + "/controlWS/rest/gps/findPositionByPlaca/{0}";

    //public static final String URL_SUPERVISION_MOVIL_SCOP_SAVE = URL_SERVER_DOMAIN + "/controlWS/rest/supervisionMovil/scop/save";

    public static final String URL_SUPERVISION_MOVIL_SCOP_SAVE_LIST = URL_SERVER_DOMAIN + "/controlWS/rest/supervisionMovil/scop/saveList";

    //public static final String URL_SUPERVISION_MOVIL_SEGURIDAD_SAVE = URL_SERVER_DOMAIN + "/controlWS/rest/supervisionMovil/seguridad/save";

    public static final String URL_SUPERVISION_MOVIL_SEGURIDAD_SAVE_LIST = URL_SERVER_DOMAIN + "/controlWS/rest/supervisionMovil/seguridad/saveList";

    public static class tipoSupervision{
        public static final String SCOP = "SCOP";
        public static final String SEGURIDAD = "SEGURIDAD";
    }

    public static class estadoSupervision{
        public static final Integer REGISTRADA = 0;
        public static final Integer ERROR_ENVIO = 1;
        public static final Integer ENVIADA = 2;
    }

    public static class tipoTramo{
        public static final Integer NO_APLICA = 0;
        public static final Integer PRIMARIO = 1;
        public static final Integer SECUNDARIO = 2;
        public static final Integer RETORNO = 3;

        public static final String[] stringList = new String[]{"PRIMARIO","SECUNDARIO","RETORNO"};
    }
}
